/**
 * 功能描述 行编辑触发事件
 */
define(function (require, exports, module) {
	var store = require("store");
	var activeUser = store.get("user");
	var signupregisterSvc = require("../store/signupregisterSvc");
	var Dialog=require("dialog");
	
    module.exports = {
    	saveAction : function(data,widget){
    		signupregisterSvc.saveSignup(data,function(){
    			Dialog.alert({
    				content:"保存成功"
            	});
    			
    			widget.show([".J-form", ".J-applygrid",".J-editgrid"]).hide(".J-applyform");
				widget.get("subnav").show(["cancel","save"]).hide(["travelDate", "destination", "servicePoint","applyCancel"]);
				widget.get("applyForm").reset();
				widget.get("applyGrid").refresh(null,function(data){
					widget.get("form").setValue("countMember",data.length);	
				});
    		});
        }
    };
});
